import java.io.IOException;
public class ServerTest {
    public static void main(String[] args) {
        ServerInitClose sic = null;
        try {

            sic = new ServerInitClose();
            sic.serverInit();

            //Dao类型引用
            ServerDao sd = new ServerDao();

            // 声明ServerView类型引用指向该类型对象
            ServerView sv = new ServerView(sic,sd);
            sv.serverRecive();



        } catch (IOException | ClassNotFoundException e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            try {
                sic.serverClose();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
